package com.tianheng.wanzhou.datacollecting.db.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 *
 * </p>
 *
 * @author yjw
 * @since 2020-06-08
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class Cushaji extends Model<Cushaji> {

    private static final long serialVersionUID = 1L;

    /**
     * 设备ip
     */
    @TableId("machine_ip")
    private String machineIp;
    /**
     * 机台号
     */
    @TableField("mac_id")
    private String macId;

    /**
     * 已纺纱层数(L)
     */
    @TableField("yi_fang_sha_layer")
    private Integer yiFangShaLayer;

    /**
     * 已纺纱长度(m)
     */
    @TableField("yi_fang_sha_length")
    private Integer yiFangShaLength;

    /**
     * 当前位置(um)
     */
    @TableField("current_location")
    private Double currentLocation;

    /**
     * 筒纱直径(um)
     */
    @TableField("tongsha_diameter")
    private Double tongshaDiameter;

    /**
     * 捻度(捻/10cm)
     */
    @TableField("nian_du")
    private Double nianDu;

    /**
     * 径向参数2
     */
    @TableField("jingxiang_param2")
    private Integer jingxiangParam2;

    /**
     * 径向参数1
     */
    @TableField("jingxiang_param1")
    private Integer jingxiangParam1;

    /**
     * 设定长度(m)
     */
    @TableField("set_length")
    private Integer setLength;

    /**
     * 初始调整位置(um)
     */
    @TableField("initial_adjustment_position")
    private Double initialAdjustmentPosition;

    /**
     * 加速调整参数
     */
    @TableField("speed_add_param")
    private Integer speedAddParam;

    /**
     * 减速调整参数
     */
    @TableField("speed_reduce_param")
    private Integer speedReduceParam;

    /**
     * 卷绕圈距
     */
    @TableField("distance_of_circle")
    private Integer distanceOfCircle;

    /**
     * 定位调整1(S)
     */
    @TableField("location_adjustment1")
    private Double locationAdjustment1;

    /**
     * 定位调整2(S)
     */
    @TableField("location_adjustment2")
    private Double locationAdjustment2;

    /**
     * 定位转速(r/min)
     */
    @TableField("location_speed")
    private Integer locationSpeed;

    /**
     * 落纱反转时间(S)
     */
    @TableField("luosha_reverse_time")
    private Double luoshaReverseTime;

    /**
     * 缠绕落纱张力
     */
    @TableField("twine_luosha_tension")
    private Double twineLuoshaTension;

    /**
     * A班累积产量
     */
    @TableField("class_a_yield")
    private Integer classAYield;

    /**
     * B班累积产量
     */
    @TableField("class_b_yield")
    private Integer classBYield;

    /**
     * C班累积产量
     */
    @TableField("class_c_yield")
    private Integer classCYield;

    /**
     * D班累积产量
     */
    @TableField("class_d_yield")
    private Integer classDYield;

    /**
     * 总产量
     */
    @TableField("class_all_yield")
    private Integer classAllYield;

    /**
     * 锭翼转速(r/min)
     */
    @TableField("spindle_speed")
    private Integer spindleSpeed;

    /**
     * 前罗拉转速(r/min)
     */
    @TableField("front_lola_speed")
    private Integer frontLolaSpeed;

    /**
     * 缠绕位置
     */
    @TableField("twine_location")
    private Double twineLocation;

    /**
     * 缠绕时间
     */
    @TableField("twine_time")
    private Double twineTime;

    /**
     * 平均锭翼转速(r/min)
     */
    @TableField("average_spindle_speed")
    private Integer averageSpindleSpeed;

    /**
     * 已换纱锭数
     */
    @TableField("yarn_change_num")
    private Integer yarnChangeNum;

    /**
     * 设定换纱锭数
     */
    @TableField("set_yarn_change")
    private Integer setYarnChange;

    /**
     * 放空管下降延时
     */
    @TableField("down_delay")
    private Double downDelay;


    @Override
    protected Serializable pkVal() {
        return this.machineIp;
    }

}
